package com.cxso.example.domain.wlpt.goods;

import com.cxso.example.enums.wlpt.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@Accessors(chain = true)
@Schema(description = "发货要求")
public class ApiGoodsRequireDomain {

    @Schema(description = "所需车辆")
    @NotNull(message = "所需车辆数不能为空")
    private Integer carTotal;

    @Schema(description = "车辆要求")
    @NotNull(message = "车辆要求不能为空")
    private YesOrNoEnum carReq;

    @Schema(description = "车型")
    private List<String> carType;

    @Schema(description = "车长")
    private List<String> carLength;

    @Schema(description = "防护要求")
    private List<String> protect;

    @Schema(description = "其他要求")
    private String otherAsk;

    @Schema(description = "联系人")
    private String linkPerson;

    @Schema(description = "联系电话")
    private String linkPhone;

    @Schema(description = "投保类型")
    private InsureBuyerEnum insureType;

    @Schema(description = "保险产品id")
    private String insuranceId;

    @Schema(description = "保额")
    private BigDecimal coverage;

    @Schema(description = "保险费用")
    private BigDecimal insuranceFee;

    @Schema(description = "被投保人")
    private String insured;

    @Schema(description = "被投保人证件类型")
    private CardTypeEnum insuredCardType;

    @Schema(description = "被投保人证件号码")
    private String insuredCardNumber;

    @Schema(description = "被投保人电话")
    private String insuredPhone;

    @Schema(description = "违约金")
    private BigDecimal liquidatedDamages;

    @Schema(description = "货源信息费")
    private BigDecimal sourceInfoFee;

    @Schema(description = "发布范围")
    @NotEmpty(message = "发布范围不能为空")
    private List<PublishScopeEnum> publishScopes;

    @Schema(description = "加密码")
    private String encryptionCode;

    @Schema(description = "范围类型")
    @NotNull(message = "范围类型不能为空")
    private ScopeTypeEnum scopeType;

    @Schema(description = "下线时限")
    private Double offlineScope;

    @Schema(description = "下线时限类型")
    private TimeUnitEnum offlineType;

    @Schema(description = "下线时间")
    private Date offlineDatetime;

}
